-
Notifications
You must be signed in to change notification settings - Fork 78
Add batch_size parameter in import_bulk method #207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Some questions
|
Codecov Report
@@ Coverage Diff @@
## main #207 +/- ##
=======================================
Coverage 99.86% 99.86%
=======================================
Files 26 26
Lines 3722 3729 +7
=======================================
+ Hits 3717 3724 +7
Misses 5 5
Continue to review full report at Codecov.
|
(no suitable for client-side functionality)
(always return result in `list` format if `batch_size` is specified)
arango/collection.py
Outdated
|
||
results.append(self._execute(request, response_handler)) | ||
|
||
return results[0] if batch_size is None else results |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #207 (comment).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, addressed in c65af2a
|
Introduces batch insertion via the
import_bulk
API.These changes warrant a minor version increment.
Demo